package com.thiny.android.game.thunderbolt.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.thiny.android.game.thunderbolt.util.SoundManager;

public class ThunderBoltService extends Service {

	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}

	// 启动时候播放音乐
	@Override
	public void onStart(Intent intent, int startId) {
		SoundManager.getInstance(this).startGameMusic();
		super.onStart(intent, startId);
	}

	// 退出时候关闭音乐
	@Override
	public void onDestroy() {
		SoundManager.getInstance(this).stopGameMusic();
		super.onDestroy();
	}

}
